package com.liangwj.springbootdesignpatterns.createTypePatterns.abstractFactory.C180;


import com.liangwj.springbootdesignpatterns.createTypePatterns.abstractFactory.Benz;

/**
 * <b>Description:</b> 生产奔驰C180车辆的具体类BenzC180 <br/>
 * @author Lingwenjun
 * @date 2019/1/21-18:00
 * @version 1.0
 */
public class BenzC180 implements Benz {

    public BenzC180() {
        carColor();
        carSpeed();
        carPrice();
    }
    @Override
    public void carColor() {
        System.out.println("BenzC180的颜色是: 银白色");
    }

    @Override
    public void carSpeed() {
        System.out.println("BenzC180的速度是: 100 km/h");
    }

    @Override
    public void carPrice() {
        System.out.println("BenzC180的价格是: 100万");
    }
}
